package com.qst.mapper;

import com.qst.entity.PersonalityDimension;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DimensionMapper {
    PersonalityDimension findByAssessmentAndTitle(@Param("assessmentId") int assessmentId,@Param("title") String title);

    void update(PersonalityDimension kp);

    List<PersonalityDimension> findByAssessment(int id);

    PersonalityDimension findById(int id);

    void insert(PersonalityDimension kp);

    List<PersonalityDimension> findCountByDimension(int id);

    void delete(int id);
}
